package pos;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;

import net.ck.hzq.ActivationregistrationActivity;
import net.ck.hzq.R;

import activity.ChangeBalanceCardActivity;
import base.BaseActivity;

/**
 * by BF00233 on 2018/12/15.
 */
public class OpenPosActivity extends BaseActivity {

    public static void start(Context context) {
        Intent intent = new Intent(context, OpenPosActivity.class);
        context.startActivity(intent);
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_open_pos;
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        findViewById(R.id.iv_back).setOnClickListener(v -> finish());
//        findViewById(R.id.tradition_pos_layout).setOnClickListener(v -> OldPosAuthActivity.start(this));
//        findViewById(R.id.mpos_open).setOnClickListener(v -> {
//            Intent intent = new Intent(this, ActivationregistrationActivity.class);
//            startActivity(intent);
//
//            Intent intent = new Intent(this, OldPosAuthByHandActivity.class);
//            startActivity(intent);
//        });
        findViewById(R.id.tradition_pos_layout).setOnClickListener(v -> {
//            Intent intent = new Intent(this, ActivationregistrationActivity.class);
//            startActivity(intent);

            Intent intent = new Intent(this, OldPosAuthByHandActivity.class);
            startActivity(intent);
        });
        findViewById(R.id.change_card_layout).setOnClickListener(v -> {
            Intent intent = new Intent(this, ChangeBalanceCardActivity.class);
            startActivity(intent);
        });
    }
}
